import React from 'react';
import { openTab } from 'utils/menuTab';
import { configure } from 'choerodon-ui';
import { getCurrentUser, waitUserInfoLoad } from 'utils/utils';

// 初始化
export const appInit = () => {
  console.log('appInit');
  configure({ prefixCls: 'c7n' });
};

const linkIframeOnMessageHooks = {
  openTab: (p) => {
    if (p?.key) {
      openTab(p);
    }
  },
  getUserMessage: async () => {
    // await waitUserInfoLoad();
    return { a: 3 };
  }
};
export default {
  linkIframeOnMessageHooks,
};
